<?php     

echo form_open(current_url()); ?>
<?php echo $custom_error; ?>
<?php echo form_hidden('ID_BUKU',$result->ID_BUKU) ?>

                                    <p><label for="ID_KATEGORI">NAMA KATEGORI<span class="required">*</span></label>
									<select name="ID_KATEGORI">
										<?php
										foreach($getKategori as $row){
										?>
										<option <?php echo ($result->ID_KATEGORI == $row["ID_KATEGORI"]) ? ("selected") : (""); ?> value="<?php echo $row["ID_KATEGORI"]; ?>"><?php echo $row["NAMA_KATEGORI"]; ?></option>
										<?php
										}
										?>
									</select>									
                                    <?php echo form_error('ID_KATEGORI','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="JUDUL">JUDUL<span class="required">*</span></label>                                
                                    <input id="JUDUL" type="text" name="JUDUL" value="<?php echo $result->JUDUL ?>"  />
                                    <?php echo form_error('JUDUL','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="PENGARANG">PENGARANG<span class="required">*</span></label>                                
                                    <input id="PENGARANG" type="text" name="PENGARANG" value="<?php echo $result->PENGARANG ?>"  />
                                    <?php echo form_error('PENGARANG','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="PENERBIT">PENERBIT<span class="required">*</span></label>                                
                                    <input id="PENERBIT" type="text" name="PENERBIT" value="<?php echo $result->PENERBIT ?>"  />
                                    <?php echo form_error('PENERBIT','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="BUKU_URL">BUKU_URL<span class="required">*</span></label>                                
                                    <input type="file" name="userfile">
                                    <?php echo form_error('BUKU_URL','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="TAHUN_TERBIT">TAHUN_TERBIT<span class="required">*</span></label>                                
                                    <input id="TAHUN_TERBIT" type="text" name="TAHUN_TERBIT" value="<?php echo $result->TAHUN_TERBIT ?>"  />
                                    <?php echo form_error('TAHUN_TERBIT','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="TANGGAL_MASUK">TANGGAL_MASUK<span class="required">*</span></label>                                
                                    <input id="TANGGAL_MASUK" type="date" name="TANGGAL_MASUK" value="<?php echo $result->TANGGAL_MASUK ?>"  />
                                    <?php echo form_error('TANGGAL_MASUK','<div>','</div>'); ?>
                                    </p>
                                    
<p>
        <?php echo form_submit( 'submit', 'Submit'); ?>
</p>

<?php echo form_close(); ?>
